import 'babel-polyfill';
import Vue from "vue"
import Vuex from "vuex"
import {Common} from "@/store/modules/common"
import http from "@/utils/http"
import api from "@/utils/api"

var common = Common(http, api);

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    ...common.state
  },
  getters: {
    ...common.getters
  },
  mutations: {
    ...common.mutations
  },
  actions: {
    ...common.actions
  }
})
